package com.devbobcorn.nekoration.items;

import com.devbobcorn.nekoration.Nekoration;

import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.util.Identifier;

public class ModItemGroups {
    public static final ItemGroup STONE_GROUP = FabricItemGroupBuilder.build(getId("stone"), () -> {
            /* ItemStack icoStack = new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Nekoration.MODID, "stone_frame_bottom")));
            DyeableBlockItem.setColor(icoStack, EnumNekoColor.WHITE);
            return icoStack; */
            return new ItemStack(Items.CYAN_WOOL);
        }
    );

    public static final ItemGroup WOODEN_GROUP = FabricItemGroupBuilder.build(getId("wooden"), () -> {
            /* ItemStack icoStack = new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Nekoration.MODID, "half_timber_p1")));
            HalfTimberBlockItem.setColor1(icoStack, EnumNekoColor.WHITE);
            HalfTimberBlockItem.setColor0(icoStack, EnumWoodenColor.BROWN);
            return icoStack; */
            return new ItemStack(Items.CYAN_WOOL);
        }
    );

    public static final ItemGroup WINDOW_N_DOOR_GROUP = FabricItemGroupBuilder.build(getId("window_n_door"), () -> {
            /* ItemStack icoStack = new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Nekoration.MODID, "window_lancet")));
            DyeableWoodenBlockItem.setColor(icoStack, EnumWoodenColor.BROWN);
            return icoStack; */
            return new ItemStack(Items.CYAN_WOOL);
        }
    );

    public static final ItemGroup DECOR_GROUP = FabricItemGroupBuilder.build(getId("decor"), () -> {
            /* ItemStack icoStack = new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Nekoration.MODID, "easel_menu")));
            DyeableWoodenBlockItem.setColor(icoStack, EnumWoodenColor.BROWN);
            return icoStack; */
            return new ItemStack(Items.CYAN_WOOL);
        }
    );

    public static final ItemGroup TOOL_GROUP = FabricItemGroupBuilder.build(getId("neko_tool"), () -> {
            //return new ItemStack(ModItems.PAW.get());
            return new ItemStack(Items.CYAN_WOOL);
        }
    );

    private static Identifier getId(String name) {
        return new Identifier(Nekoration.MODID, name);
    }
}
